home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / AtomicClock / AtomicClock.jar / AtomicClock$b.class (.txt) < prev    next >
Encoding:
Java Class File  |  2002-08-28  |  1.1 KB  |  49 lines

  1. import javax.microedition.lcdui.StringItem;
  2.  
  3. class AtomicClock$b extends StringItem implements Runnable {
  4.    // $FF: renamed from: if java.lang.Thread
  5.    public Thread field_0;
  6.    // $FF: renamed from: a boolean
  7.    public boolean field_1;
  8.    // $FF: synthetic field
  9.    private final AtomicClock this$0;
  10.  
  11.    public AtomicClock$b(AtomicClock var1) {
  12.       super("", "");
  13.       this.this$0 = var1;
  14.    }
  15.  
  16.    // $FF: renamed from: if () void
  17.    public void method_0() {
  18.       this.field_1 = true;
  19.       this.field_0 = new Thread(this);
  20.       this.field_0.start();
  21.    }
  22.  
  23.    public void run() {
  24.       while(this.field_1) {
  25.          ((StringItem)this).setText(((StringItem)this).getText() + ".");
  26.          if (((StringItem)this).getText().length() > 92) {
  27.             ((StringItem)this).setText("");
  28.          }
  29.  
  30.          try {
  31.             Thread.sleep(100L);
  32.          } catch (InterruptedException var2) {
  33.          }
  34.       }
  35.  
  36.    }
  37.  
  38.    // $FF: renamed from: a () void
  39.    public void method_1() {
  40.       this.field_1 = false;
  41.  
  42.       while(this.field_0.isAlive()) {
  43.       }
  44.  
  45.       this.field_0 = null;
  46.       ((StringItem)this).setText("");
  47.    }
  48. }
  49.